﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using Hardcodet.Wpf.TaskbarNotification;
using System.Diagnostics;

namespace music_control
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        public void InitTrayIcon()
        {

            // Initialize NotifyIcon
            var taskbarIcon = (TaskbarIcon)FindResource("MusicControlIcon");

            ViewModel viewmodel = new ViewModel();
            taskbarIcon.DataContext = viewmodel;

            this.Properties["TaskbarIcon"] = taskbarIcon;


            viewmodel.StartAllPlugins();

        }
    }
}
